package com.yehun.mapper;

import com.yehun.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {

    List<Category> listAll();

    List<Category> listNavShow();

    List<Category> listChilds(@Param("id") int id);

    Category get(@Param("id") int id);

    int save(Category category);

    int update(Category category);

    int removeLogical(@Param("idArray") int[] idArray);

    int removePhysics(@Param("idArray") int[] idArray);
}
